package mvp.cklm.testtask.service;

import mvp.cklm.testtask.model.AddressModel;
import mvp.cklm.testtask.model.enums.AddressRequest;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: valera
 * Date: 25.02.14
 * Time: 7:37
 */
public interface IAddressService extends IService {
    int getNextAddressId();

    long getAddressCount();

    boolean saveAddress(AddressModel model);

    AddressModel getAddressById(Integer key);

    List<AddressModel> getAddressPage(int page, int pageSize);

    List<AddressModel> getAddressesByRequest(Map<AddressRequest, Object> req);

    void cleanAddresses();
}
